home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1999-05-14 | 1.2 KB | 61 lines |
- G4C
-
- WINBIG 189 30 279 190 'Tutorials'
- wintype 11110001
- varpath ''
-
- xonload
- lvuse tutorials.gc 1
- lvmode SHOW ; change the lv mode on the fly
- tut = '$$lv.rec' ; store current choice
- cutvar tut cut word 1 tut ; because dir lvs have also the sizes etc
- file = 'guis:docs/tutorials/$tut'
- guiopen tutorials.gc
-
- xonclose
- guiquit tutorials.gc
-
- xonquit
- guiquit read.gc
-
- xonRMB
- status
-
-
- XLISTVIEW 3 17 180 172 '' tut guis:docs/tutorials 0 DIR ; start off with dir lv
- GadID 1
- gadfont topaz.font 8 000
- cutvar tut cut word 1 tut ; because dir lvs have also the sizes etc
- file = 'guis:docs/tutorials/$tut'
- update tutorials.gc 2 'Tutorial : $tut'
-
- TEXT 2 1 275 15 "Choose a tutorial.." 40 BOX
- GadID 2
-
-
- XBUTTON 183 17 93 19 'Read it'
- if $file > ''
- update tutorials.gc 2 'Reading $tut ..'
- *FILENAME = $file
- guiload guis:tools/read.gc
- update tutorials.gc 2 'Tutorial : $tut'
- endif
-
- XBUTTON 183 36 93 19 'Run it'
- if $file > ''
- update tutorials.gc 2 'Running $tut ..'
- guiload $file
- update tutorials.gc 2 'Tutorial : $tut'
- endif
-
- XBUTTON 183 151 93 19 'Guide..'
- run 'amigaguide guis:docs/gui4cli.guide'
-
-
- XBUTTON 183 170 93 19 'Quit'
- guiquit tutorials.gc
-
-
- ICON 198 131 guis:gui4cli
-
-